package com.community.service;

import com.community.dao.PayDao;
import com.community.entity.Pay;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class PayService {

    @Resource
    private PayDao payDao;

    public List<Pay> findAll(Integer start){
        return payDao.findAll(start);
    }

    public List<Pay> findByState(Integer payState, Integer start){
        return payDao.findByState(payState,start);
    }

    public void deleteById(Integer[] payIdList){
        payDao.deleteById(payIdList);
    }

    public Integer findCount(Integer state){
        return payDao.findCount(state);
    }
}
